using System;
using BezPanike.Domain.Services;

public partial class Links_aspx : System.Web.UI.Page
{
    public void Page_Load(object sender, EventArgs e)
    {
        FillTopFiveLinks(5);
    }

    private void FillTopFiveLinks(int i)
    {
        var service = new LinkService();
        var topFive = service.UzmiSlucajneLinkove(5);

        TopRepeater.DataSource = topFive;
        TopRepeater.DataBind();
    }
}